<style>
    .table-col{
        background-color: #f2f2f2;
    }
</style>
<div class="layui-form">
    <table class="layui-table">
        <colgroup>
            <col>
            <col>
            <col>
            <col>
            <col>
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>字段名</th>
            <th>数据类型</th>
            <th>默认值</th>
            <th>允许非空</th>
            <th>自动递增</th>
            <th>备注</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr>
            <td>{$vo.COLUMN_NAME}</td>
            <td>{$vo.COLUMN_TYPE}</td>
            <td>{$vo.COLUMN_DEFAULT}</td>
            <td>{$vo.IS_NULLABLE}</td>
            <td>{$vo.EXTRA == 'auto_increment'?'是': '否'}</td>
            <td>{$vo.COLUMN_COMMENT}</td>
        </tr>
        {/volist}
        <tr>
            <td class="table-col">字段总数</td>
            <td colspan="5">{$count}</td>
        </tr>
        </tbody>
    </table>
</div>
      